package com.farm.shop.service.impl;

import com.farm.common.utils.Query;
import com.farm.shop.dao.ScenicDao;
import com.farm.shop.domain.ScenicDO;
import com.farm.shop.service.ScenicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ScenicServiceImpl implements ScenicService {
    @Autowired
    private ScenicDao scenicDao;

    @Override
    public ScenicDO get(Integer scenicid) {
        return scenicDao.get(scenicid);
    }

    @Override
    public List<ScenicDO> list(Map<String, Object> map) {
        return scenicDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return scenicDao.count(map);
    }

    @Override
    public int save(ScenicDO scenic) {
        return scenicDao.save(scenic);
    }

    @Override
    public int update(ScenicDO scenic) {
        return scenicDao.update(scenic);
    }

    @Override
    public int remove(Integer scenicid) {
        return scenicDao.remove(scenicid);
    }

    @Override
    public int batchRemove(Integer[] scenicids) {
        return scenicDao.batchRemove(scenicids);
    }

    @Override
    public List<ScenicDO> searchName(Map<String, Object> map) {
        return scenicDao.searchName(map);
    }

    @Override
    public int searchNameCount(Map<String, Object> map) {
        return scenicDao.searchNameCount(map);
    }

}
